<%--
  Created by IntelliJ IDEA.
  User: joker
  Date: 2023/5/15
  Time: 15:25
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>CoolMeeting会议管理系统</title>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/styles/common.css"/>
    <script src="${pageContext.request.contextPath}/js/node_modules/jquery/dist/jquery.js"></script>
</head>
<body>
<div class="page-header">
    <div class="header-banner">
        <img src="${pageContext.request.contextPath}/images/header.png" alt="CoolMeeting"/>
    </div>
    <div class="header-title">
        欢迎访问Cool-Meeting会议管理系统
    </div>
    <div class="header-quicklink">
        欢迎您，<strong>${accountName}</strong>
        <a href="adminChangePassword.do">[修改密码]</a>
    </div>
</div>
<div class="page-body">
    <div class="page-sidebar">
        <div class="sidebar-menugroup">
            <div class="sidebar-grouptitle">人员管理</div>
            <ul class="sidebar-menu">
                <li class="sidebar-menuitem"><a href="department.do">部门管理</a></li>
                <li class="sidebar-menuitem"><a href="register.do">员工注册</a></li>
                <li class="sidebar-menuitem">
                    <a href="employeeApprove.do?accountName=${accountName}&password=${emp.password}" >注册审批</a></li>
                <li class="sidebar-menuitem"><a href="search.do">搜索员工</a></li>
            </ul>
        </div>
    </div>
</div>
<div class="page-content">
    <div class="content-nav">
        人员管理 > 员工注册
    </div>
    <form method="post" action="register.do">
        <fieldset>
            <legend>员工信息</legend>
            <table class="formtable" style="width:50%">
                <tr>
                    <td>部门编号：</td>
                    <td>
                        <input type="text" name="deptNo" id="deptNo" maxlength="20" required/>
                    </td>
                </tr>
                <tr>
                    <td>姓名：</td>
                    <td>
                        <input type="text" name="employeeName" id="employeeName" maxlength="20" required/>
                    </td>
                </tr>
                <tr>
                    <td>账户名：</td>
                    <td>
                        <input type="text" name="accountName" id="accountName" maxlength="20" required/>
                    </td>
                </tr>
                <tr>
                    <td>密码：</td>
                    <td>
                        <input type="password" name="password" id="password" maxlength="20" placeholder="请输入6位以上的密码" required/>
                    </td>
                </tr>
                <tr>
                    <td>确认密码：</td>
                    <td>
                        <input type="password" name="confirm" id="confirm" maxlength="20" required/>
                    </td>
                </tr>
                <tr>
                    <td>联系电话：</td>
                    <td>
                        <input type="text" name="phone" id="phone" maxlength="20" required/>
                    </td>
                </tr>
                <tr>
                    <td>电子邮件：</td>
                    <td>
                        <input type="text" name="email" id="email" maxlength="20" required/>
                    </td>
                </tr>
                <tr>
                    <td colspan="7" class="command">
                        <input type="submit" class="clickbutton" value="注册"/>
                        <input type="reset" class="clickbutton" value="重置"/>
                    </td>
                </tr>
            </table>
        </fieldset>
    </form>
</div>
</div>
<div class="page-footer">
    <hr/>
    更多问题，欢迎联系<a href="mailto:webmaster@eeg.com">管理员</a>
    <img src="${pageContext.request.contextPath}/images/footer.png" alt="CoolMeeting"/>
</div>
<script>
    const form = document.querySelector('form');
    form.addEventListener('submit',(event)=>{
        event.preventDefault();
        // const accountName = form.elements.accountName.value;
        // const password = form.elements.password.value;
        form.submit();
    });
</script>
</body>
</html>
